import type { SchoolItem } from "../types/school";

export const formatSchoolsType = (val: SchoolItem['type']): string => {
    let res = '---';

    switch (val) {
        case 0:
            res = '幼儿园'
            break;
        case 1:
            res = '小学'
            break;
        case 2:
            res = '初中'
            break;
        case 3:
            res = '高中'
            break;
        case 4:
            res = '大学'
            break;
        default:
            break;
    }
    return res
}